<h1>Listando areas</h1>

<table>
  <tr>
    <th>Descricao</th>
  </tr>

<% for area in @areas %>
  <tr>
    <td><%=h area.descricao %></td>
    <td><%= link_to 'Exibir', area %></td>
    <td><%= link_to 'Alterar', edit_area_path(area) %></td>
    <td><%= link_to 'Excluir', area, :confirm => 'Confirma a exclusão?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'Nova área', new_area_path %>
